<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .box {
            width: 600px;
            height: 80px;
            overflow: hidden;
            margin: 100px auto;
            border: 2px solid #333;
        }
        img{
            width: 100%;
            height: 100%;
        }

        .box ul {
            width: 2000px;
            /* ul做动画 */
            animation: dong 5s infinite linear;
        }

        li {
            width: 140px;
            list-style: none;
            float: left;
        }

        @keyframes dong {
            to {
                transform: translate(-1400px);
            }
        }
        /* 鼠标移入box 动画暂停*/
        .box ul:hover{
            animation-play-state: paused;
        }
    </style>
</head>

<body>
    <div class="box">
        <ul>
            <li> <img src="../image2/1.jpg"></li>
            <li> <img src="../image2/2.jpg"></li>
            <li> <img src="../image2/3.jpg"></li>
            <li> <img src="../image2/4.jpg"></li>
            <li> <img src="../image2/5.jpg"></li>
            <li> <img src="../image2/6.jpg"></li>
            <li> <img src="../image2/7.jpg"></li>
            <!-- 手动添加三张 -->
            <li> <img src="../image2/1.jpg"></li>
            <li> <img src="../image2/2.jpg"></li>
            <li> <img src="../image2/3.jpg"></li>
        </ul>
    </div>
</body>

</html>